package thread;

public class ThreadDemo1 {
    public static void main(String[] args) {
        Thread t1=new MyThread1();
        Thread t2=new MyThread2();
    }
}
class MyThread1 extends Thread{
    @Override
    public void run() {
        for (int i=0;i<1000;i++){
            System.out.println("你是谁呀!");
        }

    }
}
class MyThread2 extends Thread{
 public void run(){
     for (int i=0;i<1000;i++){
         System.out.println("我是谁呀!");
     }
 }
}